PERMISSIONS = {
	init : function() {
		PERMISSIONS.carregarIcones();
	},

	carregarIcones: function() {
		jQuery("select").change(function(){
			var permission = jQuery(this);

			if (permission.val() == "deny") {
				permission.parents("td").children("img").attr("src", "/projeto-fs-grupo-aehv/img/test-fail-icon.png");
			} else if (permission.val() == "allow") {
				permission.parents("td").children("img").attr("src", "/projeto-fs-grupo-aehv/img/test-pass-icon.png");
			}
		});
	}
}

jQuery(document).ready(function($) {
	PERMISSIONS.init();
});

